package com.sc.nft.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.task.ActivityTypeEnum;
import com.sc.nft.sup.SuperEntity;
import java.math.BigDecimal;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * ip商品订单关联商品表(sc_mall_order_product)实体类
 *
 * @author Sun
 * @since 2023-05-09 10:47:10
 * @description 由 Mybatisplus Code Generator 创建
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_mall_order_product")
public class MallOrderProduct extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    private Long mallOrderId;
    /**
     * 商品id
     */
    private Long productId;
    /**
     * 活动id
     */
    private Long activityId;
    /**
     * 商品规格id
     */
    private Long activitySpecsId;
    /**
     * 商品类型(营销活动): 1:品牌直销 2:活动兑换
     */
    private ActivityTypeEnum activityType;
    /**
     * 售价
     */
    private BigDecimal productSalesPrice;
    /**
     * 成本价
     */
    private BigDecimal productCostPrice;

    /**
     * 活动成本价
     */
    private BigDecimal activityCostPrice;

    /**
     * 托底价
     */
    private BigDecimal reservePrice;

    /**
     * 商品数量
     */
    private Integer productNum;
    /**
     * 缩略图
     */
    private String thumbnail;
    /**
     * 商品名称
     */
    private String productName;
    /**
     * 商品规格名称
     */
    private String productSpecsName;
    /**
     * 已退款数量
     */
    private Integer refundSuccessCount;
    /**
     * 总退款数量
     */
    private Integer refundNum;
    /**
     * 退款金额
     */
    private BigDecimal refundPrice;

}